byte[] bytes = new byte[n];
for (int i = 0, a = 1; i < n; i++, a++) {
int c = args.checkint(a);
if (c < 0 || c >= 256) argError(a, "invalid value");
bytes[i] = (byte) c;
}
return LuaString.valueOf(bytes);
int c = args.checkint(a);
if (c < 0 || c >= 256) {
LuaValue result;
throw ErrorFactory.argError(a, "invalid value");
}
bytes[i] = (byte) c;
}